#pragma once
#include <vector>
#include <string>
#include <stdexcept>

namespace jvm {
    namespace heap {

        class MethodDescriptor {
        public:
            std::vector<std::string> parameterTypes;
            std::string returnType;

            void addParameterType(const std::string& t) {
                parameterTypes.push_back(t);
            }
        };

    } // namespace heap
} // namespace jvm